/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.member;

import com.enation.app.javashop.client.member.MemberHistoryClient;
import com.enation.app.javashop.core.client.fallback.member.MemberHistoryClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.member.dto.HistoryDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 会员足迹客户端
 *
 * @author zh
 * @version v7.0
 * @date 19/07/05 上午11:48
 * @since v7.0
 */
@FeignClient(name = "member-service", fallbackFactory = MemberHistoryClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface MemberHistoryClientFeignImpl extends MemberHistoryClient {
    /**
     * 添加会员历史足迹
     *
     * @param historyDTO 历史足迹dto
     */
    @Override
    @RequestMapping(value = "/client/member-history", method = RequestMethod.POST)
    void addMemberHistory(@RequestBody HistoryDTO historyDTO);

}
